package com.kfm.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    // page/aa --> /WEB-INF/pages/aa.jsp
    // page/bb --> /WEB-INF/pages/bb.jsp
    // page/hello --> /WEB-INF/pages/hello.jsp

    @RequestMapping("/page/{name}")
    public String page(@PathVariable("name") String name){
        return name;
    }
}
